package com.zyy.observer.demo02;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/08/05 15:18
 */
public class Client {
    public static void main(String[] args) {
        //观察者
        Policemen policemen = new Policemen("小王");

        //被观察者
        Thief thief = new Thief("张三");
        thief.addObserver(policemen);

        thief.steal();
    }
}
